import { Button, Dropdown } from 'antd';
import { DownOutlined } from '@ant-design/icons';

const DropDownButton: React.FC<any> = (props) => {
  const { menu, style, children, ...restProps } = props;

  return (
    <Dropdown overlay={menu} placement="topLeft" {...restProps}>
      <Button>
        {children} <DownOutlined />
      </Button>
    </Dropdown>
  );
};

export default DropDownButton;
